{{extend "systems_layout.html"}}

{{block content_main}}
{{link "site.css"}}
{{link "forms.css"}}
{{use "jquery"}}
{{use "facebox"}}
{{use "jqutils", ajaxForm=True}}
{{use "poshytip"}}
{{use "jeip"}}
<div class="content_main">
    {{if request.user.users_systems.all().count()>0:}}
    <div class="content_tool">
        <a href="/systems/{{=system_id}}" style="vertical-align:middle;">&laquo;返回系统</a>
        <a class="btn btn-blue" href="/systems/{{=system_id}}/functions/add">新増功能点</a>
        <a class="btn btn-blue" href="/systems/{{=system_id}}/functions/sysfunction/import">导入功能点</a>
        <a class="btn btn-blue" href="/systems/{{=system_id}}/functions/category" rel="facebox">功能点分类管理</a>
    </div>
    {{pass}}
    <div class="query">
        {{embed query_form}}
    </div>
    {{table_id='functions_table'}}
    {{include "inc_table.html"}}
    <script>
        $(function(){
            create_table("{{=request.path}}", true, {nowrap:true});
            $.facebox.settings.loadingImage = '{{=url_for_static('facebox/loading.gif')}}'
            $.facebox.settings.closeImage = '{{=url_for_static('facebox/closelabel.png')}}'
            $('a[rel*=facebox]').facebox({'type':'POST'});
        });
    </script>
</div>
{{end}}
